<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateUserPrevilegeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2" columnClasses="label,field" styleClass="form_list">
                    <h:outputLabel value="#{bundle.CreateUserPrevilegeLabel_canRead}" for="canRead" />
                    <h:inputText id="canRead" value="#{userPrevilegeController.selected.canRead}" title="#{bundle.CreateUserPrevilegeTitle_canRead}" />
                    <h:outputLabel value="#{bundle.CreateUserPrevilegeLabel_canWrite}" for="canWrite" />
                    <h:inputText id="canWrite" value="#{userPrevilegeController.selected.canWrite}" title="#{bundle.CreateUserPrevilegeTitle_canWrite}" />
                    <h:outputLabel value="#{bundle.CreateUserPrevilegeLabel_canDelete}" for="canDelete" />
                    <h:inputText id="canDelete" value="#{userPrevilegeController.selected.canDelete}" title="#{bundle.CreateUserPrevilegeTitle_canDelete}" />
                    <h:outputLabel value="#{bundle.CreateUserPrevilegeLabel_uidFk}" for="uidFk" />
                    <h:inputText id="uidFk" value="#{userPrevilegeController.selected.uidFk}" title="#{bundle.CreateUserPrevilegeTitle_uidFk}" required="true" requiredMessage="#{bundle.CreateUserPrevilegeRequiredMessage_uidFk}"/>
                    <h:outputLabel value="#{bundle.CreateUserPrevilegeLabel_user}" for="user" />
                    <h:selectOneMenu id="user" value="#{userPrevilegeController.selected.user}" title="#{bundle.CreateUserPrevilegeTitle_user}" required="true" requiredMessage="#{bundle.CreateUserPrevilegeRequiredMessage_user}">
                        <f:selectItems value="#{userController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{userPrevilegeController.create}" value="#{bundle.CreateUserPrevilegeSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{userPrevilegeController.prepareList}" value="#{bundle.CreateUserPrevilegeShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateUserPrevilegeIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
